import WidgetKit
import SwiftUI
import CalendarShared

public struct ScreenEntry: TimelineEntry {
    public var date: Date
    public var language: Language = .system

    public init(date: Date) {
        self.date = date
        let pref = Preference.shared
        let isSync = pref.sync
        self.language = isSync ? pref.language : .system
    }
}
